/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package banksystem;

/**
 *
 * @author ROBM
 */
public class TransferTransaction extends Transaction {
	private Account transferFrom;
	private Account transferTo;
	
	public TransferTransaction(double amount, Account from, Account to)
	{
		super(TransactionType.Transfer, amount);
		transferFrom = from;
		transferTo = to;	
	}
	
	public Account getAccountFrom()
	{
		return transferFrom;
	}
	
	public Account getAccountTo()
	{
		return transferTo;
	}
}
